using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace ICP_MS.Plugin.Experiment;

public class FormInstrumentConfig : Form
{
	private IContainer components = null;

	private DataGridView dgvInstrument;

	private DataGridViewTextBoxColumn Column1;

	private DataGridViewTextBoxColumn Column2;

	private DataGridViewTextBoxColumn Column3;

	private DataGridViewTextBoxColumn Column4;

	private DataGridViewTextBoxColumn Column5;

	private DataGridViewTextBoxColumn Column6;

	private DataGridViewTextBoxColumn Column7;

	private DataGridViewTextBoxColumn Column8;

	private DataGridViewTextBoxColumn Column9;

	private DataGridViewTextBoxColumn Column10;

	private DataGridView dgvElement;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;

	private GroupBox groupBox1;

	private GroupBox groupBox2;

	private GroupBox groupBox3;

	private DataGridView dgvIon;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn15;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn16;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn17;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;

	public FormInstrumentConfig(string name)
	{
		InitializeComponent();
		SetInstrumentDatas(name);
	}

	private void SetInstrumentDatas(string name)
	{
		X2Lens lens = DataBase.Instance.GetX2Lens(name);
		PlasmaPara plasma = DataBase.Instance.GetPlasma(name);
		Platform plat = DataBase.Instance.GetPlatform(name);
		RFS rfs = DataBase.Instance.GetRFS(name);
		IList<TuneIsotope> tuneisotopes = DataBase.Instance.GetTuneIsotopes(name);
		IList<TuneRatio> tuneratios = DataBase.Instance.GetTuneRatios(name);
		for (int k = 0; k < 6; k++)
		{
			dgvInstrument.Rows.Add();
		}
		for (int l = 0; l < 2; l++)
		{
			dgvElement.Rows.Add();
		}
		for (int m = 0; m < 2; m++)
		{
			dgvIon.Rows.Add();
		}
		dgvInstrument.Rows[0].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvInstrument.Rows[2].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvInstrument.Rows[4].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvElement.Rows[0].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvIon.Rows[0].DefaultCellStyle.BackColor = Color.FromKnownColor(KnownColor.LightGray);
		dgvInstrument[0, 0].Value = Lang.Txt("FormMinor.Horizontal.Text");
		dgvInstrument[1, 0].Value = Lang.Txt("FormMinor.Vertical.Text");
		dgvInstrument[2, 0].Value = Lang.Txt("FormMajor.Z.Text");
		dgvInstrument[3, 0].Value = Lang.Txt("FormMajor.Nebulizer.Text");
		dgvInstrument[4, 0].Value = Lang.Txt("FormMajor.Power.Text");
		dgvInstrument[5, 0].Value = Lang.Txt("FormMajor.Extraction.Text");
		dgvInstrument[6, 0].Value = Lang.Txt("FormMajor.Lens1.Text");
		dgvInstrument[7, 0].Value = Lang.Txt("FormMinor.Lens2.Text");
		dgvInstrument[8, 0].Value = Lang.Txt("FormMajor.HexPolebias.Text");
		dgvInstrument[9, 0].Value = Lang.Txt("FormMinor.Lens3.Text");
		if (Detector.detectorConfig.IsNewBoard)
		{
			dgvInstrument[9, 2].Value = "";
		}
		else
		{
			dgvInstrument[9, 2].Value = Lang.Txt("FormRF.MultiplierVoltage.Text");
		}
		if (lens != null && plasma != null && plat != null)
		{
			dgvInstrument[0, 1].Value = plat.X.ToString("F2");
			dgvInstrument[1, 1].Value = plat.Z.ToString("F2");
			dgvInstrument[2, 1].Value = plat.Y.ToString("F2");
			dgvInstrument[3, 1].Value = plasma.Nebuliser.ToString("F2");
			dgvInstrument[4, 1].Value = plasma.Power.ToString("F2");
			dgvInstrument[5, 1].Value = lens.Ex.ToString("F2");
			dgvInstrument[6, 1].Value = lens.L1.ToString("F2");
			dgvInstrument[7, 1].Value = lens.L2.ToString("F2");
			dgvInstrument[8, 1].Value = lens.Pole.ToString("F2");
			dgvInstrument[9, 1].Value = lens.L3.ToString("F2");
			if (Detector.detectorConfig.IsNewBoard)
			{
				dgvInstrument[9, 3].Value = "";
			}
			else
			{
				dgvInstrument[9, 3].Value = lens.Etp.ToString("F2");
			}
		}
		dgvInstrument[0, 2].Value = Lang.Txt("FormMajor.Focus.Text");
		dgvInstrument[1, 2].Value = Lang.Txt("FormMajor.D1.Text");
		dgvInstrument[2, 2].Value = Lang.Txt("FormMinor.D2.Text");
		dgvInstrument[3, 2].Value = Lang.Txt("FormRF.QuadBias.Text");
		dgvInstrument[4, 2].Value = Lang.Txt("FormRF.Prebarbias.Text");
		dgvInstrument[5, 2].Value = Lang.Txt("FormMinor.CoolGas.Text");
		dgvInstrument[6, 2].Value = Lang.Txt("FormMinor.Auxilury.Text");
		dgvInstrument[7, 2].Value = Lang.Txt("SeaExperiment.FormConfig.Diluent");
		dgvInstrument[8, 2].Value = Lang.Txt("FormMajor.Collision.Text");
		dgvInstrument[9, 2].Value = Lang.Txt("FormMinor.DA.Text");
		if (lens != null && plasma != null && plat != null)
		{
			dgvInstrument[0, 3].Value = lens.F.ToString("F2");
			dgvInstrument[1, 3].Value = lens.D1.ToString("F2");
			dgvInstrument[2, 3].Value = lens.D2.ToString("F2");
			dgvInstrument[3, 3].Value = rfs.quadPole.ToString("F2");
			dgvInstrument[4, 3].Value = rfs.prePole.ToString("F2");
			dgvInstrument[5, 3].Value = plasma.Cool.ToString("F2");
			dgvInstrument[6, 3].Value = plasma.Auxiliary.ToString("F2");
			dgvInstrument[7, 3].Value = plasma.Appendix1.ToString("F2");
			dgvInstrument[8, 3].Value = plasma.Collision.ToString("F2");
			dgvInstrument[9, 3].Value = lens.DA.ToString("F2");
		}
		dgvInstrument[0, 4].Value = Lang.Txt("FormMinor.QE.Text");
		dgvInstrument[1, 4].Value = Lang.Txt("FormRF.SixPoleCoefficient.Text");
		if (Detector.detectorConfig.IsNewBoard)
		{
			dgvInstrument[2, 4].Value = "HVP";
			dgvInstrument[3, 4].Value = "HVN";
			dgvInstrument[4, 4].Value = "Gate";
			dgvInstrument[5, 4].Value = "";
		}
		else
		{
			dgvInstrument[2, 4].Value = "";
			dgvInstrument[3, 4].Value = "";
			dgvInstrument[4, 4].Value = "";
			dgvInstrument[5, 4].Value = Lang.Txt("FormRF.MultiplierVoltage.Text");
		}
		dgvInstrument[6, 4].Value = Lang.Txt("FormMajor.Collision2.Text");
		if (rfs != null)
		{
			dgvInstrument[0, 5].Value = lens.QE.ToString("F2");
			dgvInstrument[1, 5].Value = rfs.hexPara.ToString("F2");
			dgvInstrument[1, 5].Value = rfs.hexPara.ToString("F2");
			if (!Detector.detectorConfig.IsNewBoard)
			{
				dgvInstrument[2, 5].Value = "";
				dgvInstrument[3, 5].Value = "";
				dgvInstrument[4, 5].Value = "";
				dgvInstrument[5, 5].Value = lens.Etp.ToString("F2");
			}
			else
			{
				dgvInstrument[2, 5].Value = rfs.HVP.ToString("F0");
				dgvInstrument[3, 5].Value = rfs.HVN.ToString("F0");
				dgvInstrument[4, 5].Value = rfs.Gate.ToString("F0");
				dgvInstrument[5, 5].Value = "";
			}
			dgvInstrument[6, 5].Value = plasma.Collision2.ToString("F2");
		}
		if (tuneisotopes != null)
		{
			for (int j = 0; j < tuneisotopes.Count && j < 10; j++)
			{
				dgvElement[j, 0].Value = ((tuneisotopes[j].symbol == null) ? "" : tuneisotopes[j].symbol.ToString());
				dgvElement[j, 1].Value = ((tuneisotopes[j].counts < 0) ? "" : tuneisotopes[j].counts.ToString());
			}
		}
		if (tuneratios != null)
		{
			for (int i = 0; i < tuneratios.Count; i++)
			{
				dgvIon[i, 0].Value = ((tuneratios[i].NumeratorSym == null || tuneratios[i].DenominatorSym == null) ? "" : $"{tuneratios[i].NumeratorSym}/{tuneratios[i].DenominatorSym}");
				dgvIon[i, 1].Value = ((tuneratios[i].Ratio < 0.0) ? "" : tuneratios[i].Ratio.ToString("F3"));
			}
		}
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
		this.dgvInstrument = new System.Windows.Forms.DataGridView();
		this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dgvElement = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.dgvIon = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		((System.ComponentModel.ISupportInitialize)this.dgvInstrument).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.dgvElement).BeginInit();
		this.groupBox1.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBox3.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.dgvIon).BeginInit();
		base.SuspendLayout();
		this.dgvInstrument.AllowUserToAddRows = false;
		this.dgvInstrument.AllowUserToDeleteRows = false;
		this.dgvInstrument.AllowUserToResizeColumns = false;
		this.dgvInstrument.AllowUserToResizeRows = false;
		this.dgvInstrument.BackgroundColor = System.Drawing.SystemColors.Control;
		this.dgvInstrument.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvInstrument.ColumnHeadersVisible = false;
		this.dgvInstrument.Columns.AddRange(this.Column1, this.Column2, this.Column3, this.Column4, this.Column5, this.Column6, this.Column7, this.Column8, this.Column9, this.Column10);
		this.dgvInstrument.Dock = System.Windows.Forms.DockStyle.Fill;
		this.dgvInstrument.Location = new System.Drawing.Point(3, 21);
		this.dgvInstrument.Margin = new System.Windows.Forms.Padding(4);
		this.dgvInstrument.Name = "dgvInstrument";
		this.dgvInstrument.RowHeadersVisible = false;
		dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		this.dgvInstrument.RowsDefaultCellStyle = dataGridViewCellStyle1;
		this.dgvInstrument.RowTemplate.Height = 40;
		this.dgvInstrument.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
		this.dgvInstrument.Size = new System.Drawing.Size(1141, 216);
		this.dgvInstrument.TabIndex = 1;
		this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column1.HeaderText = "Column1";
		this.Column1.Name = "Column1";
		this.Column1.ReadOnly = true;
		this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column2.HeaderText = "Column2";
		this.Column2.Name = "Column2";
		this.Column2.ReadOnly = true;
		this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column3.HeaderText = "Column3";
		this.Column3.Name = "Column3";
		this.Column3.ReadOnly = true;
		this.Column4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column4.HeaderText = "Column4";
		this.Column4.Name = "Column4";
		this.Column4.ReadOnly = true;
		this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column5.HeaderText = "Column5";
		this.Column5.Name = "Column5";
		this.Column5.ReadOnly = true;
		this.Column6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column6.HeaderText = "Column6";
		this.Column6.Name = "Column6";
		this.Column6.ReadOnly = true;
		this.Column7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column7.HeaderText = "Column7";
		this.Column7.Name = "Column7";
		this.Column7.ReadOnly = true;
		this.Column8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column8.HeaderText = "Column8";
		this.Column8.Name = "Column8";
		this.Column8.ReadOnly = true;
		this.Column9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column9.HeaderText = "Column9";
		this.Column9.Name = "Column9";
		this.Column9.ReadOnly = true;
		this.Column10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.Column10.HeaderText = "Column10";
		this.Column10.Name = "Column10";
		this.Column10.ReadOnly = true;
		this.dgvElement.AllowUserToAddRows = false;
		this.dgvElement.AllowUserToDeleteRows = false;
		this.dgvElement.AllowUserToResizeColumns = false;
		this.dgvElement.AllowUserToResizeRows = false;
		this.dgvElement.BackgroundColor = System.Drawing.SystemColors.Control;
		this.dgvElement.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvElement.ColumnHeadersVisible = false;
		this.dgvElement.Columns.AddRange(this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn2, this.dataGridViewTextBoxColumn3, this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn5, this.dataGridViewTextBoxColumn6, this.dataGridViewTextBoxColumn7, this.dataGridViewTextBoxColumn8, this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn10);
		this.dgvElement.Dock = System.Windows.Forms.DockStyle.Fill;
		this.dgvElement.Location = new System.Drawing.Point(3, 21);
		this.dgvElement.Margin = new System.Windows.Forms.Padding(4);
		this.dgvElement.Name = "dgvElement";
		this.dgvElement.RowHeadersVisible = false;
		dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		this.dgvElement.RowsDefaultCellStyle = dataGridViewCellStyle2;
		this.dgvElement.RowTemplate.Height = 40;
		this.dgvElement.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
		this.dgvElement.Size = new System.Drawing.Size(1141, 90);
		this.dgvElement.TabIndex = 1;
		this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn1.HeaderText = "Column1";
		this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
		this.dataGridViewTextBoxColumn1.ReadOnly = true;
		this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn2.HeaderText = "Column2";
		this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
		this.dataGridViewTextBoxColumn2.ReadOnly = true;
		this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn3.HeaderText = "Column3";
		this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
		this.dataGridViewTextBoxColumn3.ReadOnly = true;
		this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn4.HeaderText = "Column4";
		this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
		this.dataGridViewTextBoxColumn4.ReadOnly = true;
		this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn5.HeaderText = "Column5";
		this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
		this.dataGridViewTextBoxColumn5.ReadOnly = true;
		this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn6.HeaderText = "Column6";
		this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
		this.dataGridViewTextBoxColumn6.ReadOnly = true;
		this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn7.HeaderText = "Column7";
		this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
		this.dataGridViewTextBoxColumn7.ReadOnly = true;
		this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn8.HeaderText = "Column8";
		this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
		this.dataGridViewTextBoxColumn8.ReadOnly = true;
		this.dataGridViewTextBoxColumn9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn9.HeaderText = "Column9";
		this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
		this.dataGridViewTextBoxColumn9.ReadOnly = true;
		this.dataGridViewTextBoxColumn10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn10.HeaderText = "Column10";
		this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
		this.dataGridViewTextBoxColumn10.ReadOnly = true;
		this.groupBox1.Controls.Add(this.dgvInstrument);
		this.groupBox1.Location = new System.Drawing.Point(5, 3);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(1147, 240);
		this.groupBox1.TabIndex = 2;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "仪器条件";
		this.groupBox2.Controls.Add(this.dgvElement);
		this.groupBox2.Location = new System.Drawing.Point(2, 249);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(1147, 114);
		this.groupBox2.TabIndex = 3;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "离子强度";
		this.groupBox3.Controls.Add(this.dgvIon);
		this.groupBox3.Location = new System.Drawing.Point(5, 381);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Size = new System.Drawing.Size(1147, 114);
		this.groupBox3.TabIndex = 3;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "氧化物和二次离子产率";
		this.dgvIon.AllowUserToAddRows = false;
		this.dgvIon.AllowUserToDeleteRows = false;
		this.dgvIon.AllowUserToResizeColumns = false;
		this.dgvIon.AllowUserToResizeRows = false;
		this.dgvIon.BackgroundColor = System.Drawing.SystemColors.Control;
		this.dgvIon.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvIon.ColumnHeadersVisible = false;
		this.dgvIon.Columns.AddRange(this.dataGridViewTextBoxColumn11, this.dataGridViewTextBoxColumn12, this.dataGridViewTextBoxColumn13, this.dataGridViewTextBoxColumn14, this.dataGridViewTextBoxColumn15, this.dataGridViewTextBoxColumn16, this.dataGridViewTextBoxColumn17, this.dataGridViewTextBoxColumn18, this.dataGridViewTextBoxColumn19, this.dataGridViewTextBoxColumn20);
		this.dgvIon.Dock = System.Windows.Forms.DockStyle.Fill;
		this.dgvIon.Location = new System.Drawing.Point(3, 21);
		this.dgvIon.Margin = new System.Windows.Forms.Padding(4);
		this.dgvIon.Name = "dgvIon";
		this.dgvIon.RowHeadersVisible = false;
		dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		this.dgvIon.RowsDefaultCellStyle = dataGridViewCellStyle3;
		this.dgvIon.RowTemplate.Height = 40;
		this.dgvIon.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
		this.dgvIon.Size = new System.Drawing.Size(1141, 90);
		this.dgvIon.TabIndex = 1;
		this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn11.HeaderText = "Column1";
		this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
		this.dataGridViewTextBoxColumn11.ReadOnly = true;
		this.dataGridViewTextBoxColumn12.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn12.HeaderText = "Column2";
		this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
		this.dataGridViewTextBoxColumn12.ReadOnly = true;
		this.dataGridViewTextBoxColumn13.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn13.HeaderText = "Column3";
		this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
		this.dataGridViewTextBoxColumn13.ReadOnly = true;
		this.dataGridViewTextBoxColumn14.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn14.HeaderText = "Column4";
		this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
		this.dataGridViewTextBoxColumn14.ReadOnly = true;
		this.dataGridViewTextBoxColumn15.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn15.HeaderText = "Column5";
		this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
		this.dataGridViewTextBoxColumn15.ReadOnly = true;
		this.dataGridViewTextBoxColumn16.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn16.HeaderText = "Column6";
		this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
		this.dataGridViewTextBoxColumn16.ReadOnly = true;
		this.dataGridViewTextBoxColumn17.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn17.HeaderText = "Column7";
		this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
		this.dataGridViewTextBoxColumn17.ReadOnly = true;
		this.dataGridViewTextBoxColumn18.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn18.HeaderText = "Column8";
		this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
		this.dataGridViewTextBoxColumn18.ReadOnly = true;
		this.dataGridViewTextBoxColumn19.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn19.HeaderText = "Column9";
		this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
		this.dataGridViewTextBoxColumn19.ReadOnly = true;
		this.dataGridViewTextBoxColumn20.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
		this.dataGridViewTextBoxColumn20.HeaderText = "Column10";
		this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
		this.dataGridViewTextBoxColumn20.ReadOnly = true;
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 15f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1153, 489);
		base.Controls.Add(this.groupBox3);
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.groupBox1);
		base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
		base.Margin = new System.Windows.Forms.Padding(4);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "FormInstrumentConfig";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "仪器条件";
		((System.ComponentModel.ISupportInitialize)this.dgvInstrument).EndInit();
		((System.ComponentModel.ISupportInitialize)this.dgvElement).EndInit();
		this.groupBox1.ResumeLayout(false);
		this.groupBox2.ResumeLayout(false);
		this.groupBox3.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.dgvIon).EndInit();
		base.ResumeLayout(false);
	}
}
